import unittest

class Test2(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        print('all cases before')

    @classmethod
    def tearDownClass(cls):
        print('all cases after')


    def setUp(self):
        print('case before')

    def tearDown(self):
        print('case after')

    # @unittest.skip('不执行')
    def test2_case02(self):
        print('test2case 1')

    def test2_case01(self):
        print('test2case 2')

    def test2_case03(self):
        print('test2case 3')



if __name__ == '__main__':

    # unittest.main()

    suite = unittest.TestSuite()
    suite.addTest(Test2('test2_case02'))
    suite.addTest(Test2('test2_case01'))
    suite.addTest(Test2('test2_case03'))
    unittest.TextTestRunner().run(suite)